package com.cqhilink.iot.jobstandardmanagement.facade.service.workcellinfo;

import com.alibaba.fastjson.JSONObject;
import com.cqhilink.iot.jobstandardmanagement.facade.model.AbnormalType;
import com.cqhilink.iot.jobstandardmanagement.facade.model.Employee;

import java.util.Map;

/**
 * Created by huangxueqian@cqhilink.com on 2016/12/12.
 * 异常类型服务类
 */
public interface JsmAbnormalTypeService {

    /**
     * 加载生产实体类型 -  异常类型
     * @param abnormalType
     */
    public JSONObject table(AbnormalType abnormalType) throws Exception;

    /**
     * 加载生产实体类型 -  异常类型
     *
     * @param abnormalType 新增异常类型
     * @return
     * @throws Exception
     */
    public Integer addAbnormalType(AbnormalType abnormalType, Employee employee) throws Exception;

    /**
     * 新增异常类型 ， 删除异常类型
     * @param abnormalTypeIds
     * @return
     * @throws Exception
     */
    public Integer delAbnormalType(Map abnormalTypeIds);

    /**
     * 查询异常类型
     * @param abnormalTypeId
     */
    public AbnormalType queryAbnormalType(String abnormalTypeId) throws Exception;

}
